<template>
  <formitem-wapper :formitem="formitem">
    <j-search-select-tag
      async
      v-bind="widgetAttrs"
      v-decorator="[formitem.key,formitem.fieldDecoratorOptions]"
      :dict="formitem.searchDict"
      :trigger-change="true"
      :popContainer="popContainerString"
      :placeholder="placeholder">
    </j-search-select-tag>

  </formitem-wapper>
</template>

<script>
  import FormitemWapper from './../FormitemWapper.vue'
  import { FormItemMixin } from './../FormItenMixin'

  export default {
    name: 'SelectSearchWidget',
    mixins:[FormItemMixin],
    components:{
      FormitemWapper,
    },
    mounted() {
      if(this.formitem.error){
        this.$message.warning(this.formitem.error);
      }
    }
  }
</script>
